package cn.com.oceansoft.business.os.service;

import cn.com.oceansoft.business.base.entity.Pager;
import cn.com.oceansoft.business.base.entity.Query;
import cn.com.oceansoft.business.base.entity.Result;
import cn.com.oceansoft.business.os.entity.Dept;
import cn.com.oceansoft.business.os.entity.Lucky;
import cn.com.oceansoft.business.os.entity.User;

import java.util.List;

/**
 * Created by zhangxl on 2016/12/20.
 */
public interface ILuckyService {

    Pager<Lucky> findPageByCondition(Query query);

    Result save(Lucky lucky);

    Result update(Lucky lucky);

    Lucky findById(int luckyId);

    void deleteLuckyById(int luckyId);

    List<User> findLuckyPersonByLuckyId(int luckyId);

    void updateLuckyPersonBatch(int luckyId, int[] ids);

    List<Dept> findDept();

    List<User> check4User(int luckyId);


    List<User> findLuckyBoyById(int luckyId);

    Lucky findLuckyById(int luckyId);
}
